package comm;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class dbsqlcon {
	public Connection connect()
	{
		Connection con=null;
		String driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";
		String DB_USERID="rlatjdgus3";
		String DB_USERPW="tjdgusdl104";
		String DB_URL="jdbc:sqlserver://121.254.224.188:1433;databaseName=893new;user="+DB_USERID+";password="+DB_USERPW;
		try{
			Class.forName(driver);
			con = DriverManager.getConnection(DB_URL);	
		}catch(SQLException se){
			se.printStackTrace();
		}catch(Exception e){
			e.printStackTrace();
		}
		return con;
	}
}
